package com.zto.tbschedule.console.vo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Date;

public class Application {
    private Long id;
    @Pattern(regexp = "[a-zA-Z]{2,20}", message = "CODE必须是2到20位的字母")
    private String code;
    @Size(min = 1, max = 20, message = "应用名称必须是1到20位的字符")
    private String name;
    private String description;
    @NotNull(message = "zkPath不能为空")
    private String zkPath;
    @NotNull(message = "userName不能为空")
    private String zkUserName;
    @NotNull(message = "password不能为空")
    private String zkPassWord;
    private Date createDate;
    @NotNull(message = "创建人ID不能为空")
    private Long createId;
    private String createMan;
    private String modifyMan;
    private Long modifyId;
    private Date modifyDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    public String getZkPath() {
        return zkPath;
    }

    public void setZkPath(String zkPath) {
        this.zkPath = zkPath;
    }

    public String getZkUserName() {
        return zkUserName;
    }

    public void setZkUserName(String zkUserName) {
        this.zkUserName = zkUserName;
    }

    public String getZkPassWord() {
        return zkPassWord;
    }

    public void setZkPassWord(String zkPassWord) {
        this.zkPassWord = zkPassWord;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public String getCreateMan() {
        return createMan;
    }

    public void setCreateMan(String createMan) {
        this.createMan = createMan;
    }

    public String getModifyMan() {
        return modifyMan;
    }

    public void setModifyMan(String modifyMan) {
        this.modifyMan = modifyMan;
    }

    public Long getModifyId() {
        return modifyId;
    }

    public void setModifyId(Long modifyId) {
        this.modifyId = modifyId;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }
}
